package com.ruoyi.project.product.product.domain;

import com.ruoyi.project.product.attr.domain.ProductAttrKey;
import com.ruoyi.project.product.sku.domain.ProductSku;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 商品管理对象 product
 * 
 * @author wyh
 * @date 2024-08-05
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 封面 */
    @Excel(name = "封面")
    private String cover;

    /** 细节图 */
    @Excel(name = "细节图")
    private String detailDrawing;

    /** 上/下架 */
    @Excel(name = "上/下架")
    private String shelfStatus;

    /** 销量 */
    @Excel(name = "销量")
    private Long saleNum;

    /** 描述 */
    @Excel(name = "描述")
    private String info;

    @Excel(name = "返利积分")
    private Long pointRebate;

    /** 销量 */
    @Excel(name = "属性模板")
    private String attrId;

    @Excel(name = "保修期")
    private String baoxiu;//保修期

    private List<ProductSku> skuList;//sku
    private ProductAttrKey productAtts;//商品属性

    private String color;//颜色

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setDetailDrawing(String detailDrawing) 
    {
        this.detailDrawing = detailDrawing;
    }

    public String getDetailDrawing() 
    {
        return detailDrawing;
    }
    public void setShelfStatus(String shelfStatus) 
    {
        this.shelfStatus = shelfStatus;
    }

    public String getShelfStatus() 
    {
        return shelfStatus;
    }
    public void setSaleNum(Long saleNum) 
    {
        this.saleNum = saleNum;
    }

    public Long getSaleNum() 
    {
        return saleNum;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }

    public String getAttrId() {
        return attrId;
    }

    public void setAttrId(String attrId) {
        this.attrId = attrId;
    }

    public List<ProductSku> getSkuList() {
        return skuList;
    }

    public void setSkuList(List<ProductSku> skuList) {
        this.skuList = skuList;
    }

    public ProductAttrKey getProductAtts() {
        return productAtts;
    }

    public void setProductAtts(ProductAttrKey productAtts) {
        this.productAtts = productAtts;
    }

    public Long getPointRebate() {
        return pointRebate;
    }

    public void setPointRebate(Long pointRebate) {
        this.pointRebate = pointRebate;
    }

    public String getBaoxiu() {
        return baoxiu;
    }

    public void setBaoxiu(String baoxiu) {
        this.baoxiu = baoxiu;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", cover='" + cover + '\'' +
                ", detailDrawing='" + detailDrawing + '\'' +
                ", shelfStatus='" + shelfStatus + '\'' +
                ", saleNum=" + saleNum +
                ", info='" + info + '\'' +
                ", pointRebate=" + pointRebate +
                ", attrId='" + attrId + '\'' +
                ", baoxiu='" + baoxiu + '\'' +
                ", skuList=" + skuList +
                ", productAtts=" + productAtts +
                ", color='" + color + '\'' +
                '}';
    }
}
